package com.ssy.lingxi.message.api.fallback;

import com.ssy.lingxi.common.response.ResponseCode;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.message.api.feign.WsMessageControllerFeign;
import com.ssy.lingxi.message.api.vo.request.WsMessageRequest;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class WsMessageControllerFeignFallback implements WsMessageControllerFeign {

    @Override
    public Wrapper sendWsMessage(WsMessageRequest request) {
        return Wrapper.fail(ResponseCode.SERVICE_MESSAGE_ERROR);
    }

    @Override
    public Wrapper batchSendWsMessage(List<WsMessageRequest> request) {
        return Wrapper.fail(ResponseCode.SERVICE_MESSAGE_ERROR);
    }
}
